Add missing braces in GPX schema detector.
authorrobertl <robertl>
Sat, 27 Jun 2009 23:47:05 +0000 (23:47 +0000)
committerrobertl <robertl>
Sat, 27 Jun 2009 23:47:05 +0000 (23:47 +0000)
gpx.c

diff --git a/gpx.c b/gpx.c
index e89b994f2d4dd2fa6e4930789f4c22572cf6cc1e..6658ce2d30a421e2582897a2f2ab87ae18a084df 100644 (file)
--- a/gpx.c
+++ b/gpx.c
@@ -440,9 +440,10 @@ tag_gpx(const char **attrv)
                 */
                else if (strcmp(avp[0], "xsi:schemaLocation") == 0) {
                        if (0 == strcmp(avp[1], DEFAULT_XSI_SCHEMA_LOC_11)) {
-                               if (0 == strcmp(xsi_schema_loc, DEFAULT_XSI_SCHEMA_LOC))
+                               if (0 == strcmp(xsi_schema_loc, DEFAULT_XSI_SCHEMA_LOC)) {
                                        xfree(xsi_schema_loc);
                                        xsi_schema_loc = xstrdup(DEFAULT_XSI_SCHEMA_LOC_11);
+                               }
                                continue;
                        }
                        if (0 == strstr(xsi_schema_loc, avp[1])) {